// ============================== 导入依赖 ============================== //

// ============================== 导出文件工具 ============================== //

export default {
  /**
   * 文件上传
   *
   * @param {File} file 文件
   * @param {String} folder 目录
   * @param {String} business 业务
   *
   * @returns {String} 文件路径
   */
  async fileUpload(file, folder = 'file', business = 'public') {
    this.loading()

    return new Promise((resolve) => {
      setTimeout(() => {
        resolve('https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png')
        this.unloading()
      }, 300)
    })
  },
}
